package com.mashibing.controller;

import com.mashibing.remote.ServiceOrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private ServiceOrderClient serviceOrderClient;

    @GetMapping("/test")
    public String test() {
        return "success test";
    }

    @GetMapping("/authTest")
    public String authTest() {
        return "success authTest";
    }

    @GetMapping("/noAuthTest")
    public String noAuthTest() {
        return "success noAuthTest";
    }

    @GetMapping("/jmterTest/{orderInfoId}")
    public void jmterTest(@PathVariable String orderInfoId) {
        System.out.println("orderInfoId=" + orderInfoId);
        serviceOrderClient.jmterTest(orderInfoId);
    }




























}
